package com.villaday.idf.model;

/**
 * Created by tudou on 2018/9/8.
 */

public class PayOrders {


    /**
     * type : 1
     * product : {"id":"string,产品ID","type":100,"quantity":1}
     * activity : {"id":"string,活动ID","type":13}
     * mobile : string,手机号码。提交数据时，客户端仅需仅需简单校验长度，是否为空即可，具体的校验由服务端完成
     * linkman : string,订单联系人，下单时提交的联系人信息，客户端仅需校验不为空即可
     * checkInDate : string,入住时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     * checkOutDate : string,退房时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     * useWallet : false
     * walletDeductibleAmount  : 1
     */

    private long type;
    private ProductEntity product;
    private ActivityEntity activity;
    private String mobile;
    private String linkman;
    private String checkInDate;
    private String checkOutDate;
    private boolean useWallet;
    private long walletDeductibleAmount;
    private String addressId;

    private String email;
    private String identityNumber;

    private String remarks;

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentityNumber() {
        return identityNumber;
    }

    public void setIdentityNumber(String identityNumber) {
        this.identityNumber = identityNumber;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public PayOrders(long type, ActivityEntity activity, String mobile, String linkman, boolean useWallet, long walletDeductibleAmount,String addressId,String email,String identityNumber,String remarks) {
        this.type = type;
        this.activity = activity;
        this.mobile = mobile;
        this.linkman = linkman;
        this.useWallet = useWallet;
        this.walletDeductibleAmount = walletDeductibleAmount;
        this.addressId = addressId;


        this.email = email;
        this.identityNumber = identityNumber;
        this.remarks = remarks;
    }
    public PayOrders(long type, ActivityEntity activity,String mobile, String linkman, boolean useWallet, long walletDeductibleAmount,String addressId,String email,String identityNumber,String remarks, String checkInDate, String checkOutDate) {
        this.type = type;
        this.activity = activity;
        this.mobile = mobile;
        this.linkman = linkman;
        this.useWallet = useWallet;
        this.walletDeductibleAmount = walletDeductibleAmount;
        this.addressId = addressId;
        this.checkInDate = checkInDate;
        //this.checkOutDate = checkOutDate;

        this.email = email;
        this.identityNumber = identityNumber;
        this.remarks = remarks;
    }

    public PayOrders(long type, ProductEntity product,  String checkInDate, String checkOutDate, String mobile, String linkman,boolean useWallet, long walletDeductibleAmount,String addressId,String email,String identityNumber,String remarks) {
        this.type = type;
        this.product = product;
        this.mobile = mobile;
        this.linkman = linkman;
        this.checkInDate = checkInDate;
        this.checkOutDate = checkOutDate;
        this.useWallet = useWallet;
        this.walletDeductibleAmount = walletDeductibleAmount;
        this.addressId = addressId;

        this.email = email;
        this.identityNumber = identityNumber;
        this.remarks = remarks;
    }



    public long getType() {
        return type;
    }

    public void setType(long type) {
        this.type = type;
    }

    public ProductEntity getProduct() {
        return product;
    }

    public void setProduct(ProductEntity product) {
        this.product = product;
    }

    public ActivityEntity getActivity() {
        return activity;
    }

    public void setActivity(ActivityEntity activity) {
        this.activity = activity;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(String checkInDate) {
        this.checkInDate = checkInDate;
    }

    public String getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(String checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public boolean isUseWallet() {
        return useWallet;
    }

    public void setUseWallet(boolean useWallet) {
        this.useWallet = useWallet;
    }

    public long getWalletDeductibleAmount() {
        return walletDeductibleAmount;
    }

    public void setWalletDeductibleAmount(long walletDeductibleAmount) {
        this.walletDeductibleAmount = walletDeductibleAmount;
    }

    public static class ProductEntity {
        /**
         * id : string,产品ID
         * type : 100
         * quantity : 1
         */

        private String id;
        private long type;
        private long quantity;

        public ProductEntity(String id, long type, long quantity) {
            this.id = id;
            this.type = type;
            this.quantity = quantity;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public long getType() {
            return type;
        }

        public void setType(long type) {
            this.type = type;
        }

        public long getQuantity() {
            return quantity;
        }

        public void setQuantity(long quantity) {
            this.quantity = quantity;
        }
    }

    public static class ActivityEntity {
        /**
         * id : string,活动ID
         * type : 13
         */

        private String id;
        private long type;

        private int quantity;




        public ActivityEntity(String id, long type, int quantity) {
            this.id = id;
            this.type = type;
            this.quantity = quantity;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public long getType() {
            return type;
        }

        public void setType(long type) {
            this.type = type;
        }
    }
}
